spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS
authorGuillaume GARDET <[email protected]>
Thu, 18 Feb 2016 17:17:36 +0000 (18:17 +0100)
committerTom Rini <[email protected]>
Fri, 19 Feb 2016 14:31:37 +0000 (09:31 -0500)
commit86a0df732853d1a11eb3eaa3cda688d9ef7b34e5
treedde72e7be424338f953c092aec05172ca5d33ba3
parentcf432dd5953e9ddf06759565c80fed470882da6d
spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS

Since commit fd61d39970b9901217efc7536d9f3a61b4e1752a:
        spl: mmc: add break statements in spl_mmc_load_image()
RAW and FS boot modes are now exclusive again. So, if MMCSD_MODE_RAW fails, the
board hangs. This patch allows to try MMCSD_MODE_FS then.

It has been tested on a beaglebone black to boot on an EXT partition.

Signed-off-by: Guillaume GARDET <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Nikita Kiryanov <[email protected]>
Cc: Igor Grinberg <[email protected]>
Cc: Paul Kocialkowski <[email protected]>
Cc: Pantelis Antoniou <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Matwey V. Kornilov <[email protected]>
Acked-by: Nikita Kiryanov <[email protected]>
common/spl/spl_mmc.c